import request from '@/utils/request'

export function getModel(id) {
  return request({
    url: 'sys/process/getModelById',
    method: 'get',
    params: { 'id': id }
  })
}

export function updateModel(data) {
  return request({
    url: 'sys/process/updateProcess',
    method: 'post',
    data: data
  })
}

export function addModel(data) {
  return request({
    url: 'sys/process/addProcess',
    method: 'post',
    data: data
  })
}

